# encoding: utf-8
#此文件主要需要注意时间格式问题 看看真实环境中格式
__author__ = 'user'

import os
import glob
import shutil
import time

#net use
# for item in glob.iglob(r"r:\trans\*.txt"):
#     os.remove(item)
# os.rmdir(r"r:\trans")
dst = r"H:\pythonTest2"
if os.path.exists(dst):
    [os.remove(item) for item in glob.iglob(r"H:\pythonTest2\*.txt")]
    pass
else:
    os.mkdir(dst)
[shutil.copy(item, dst) for item in glob.iglob("H:\pythonTest\*.txt")]

print time.strftime("%Y%m%d %A")

if not os.path.exists(dst+os.sep + time.strftime("%Y%m%d %A")):
    os.mkdir(dst+os.sep + time.strftime("%Y%m%d %A"))


year = time.strftime("%Y")
month = time.strftime("%m")
day = time.strftime("%d")
print year, hex(int(month)), day

for i in range(1,13):
    print(str(hex(i)).split("x")[1])
    print(str(hex(i)).replace("0x", ""))
    print(str(hex(i)))


